package com.gxa.uhome.service;

import com.gxa.uhome.exception.BusinessException;
import com.gxa.uhome.pojo.Order;
import com.gxa.uhome.pojo.UserOrder;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

/**
 * @author: Laiguowei
 * @date: 9:45 2021/6/10
 **/
@Service
public interface OrderService {

    Integer createOrder(Order order);

    Integer updateOrder(Order order);

    Integer shipOrder(Integer shipperId, Integer orderId);
    /*
此方法前端传入一个map map包含name（name是模糊查询部分内容），beginTime，
endTime，status，stationId，page，size 其中page，size必填项
 */

    List<Map<String, Object>> selectByPage(Map<String, Object> map);

    UserOrder getDetailByOrderId(Integer id);

    //     HSSFWorkbook export() throws IOException;
    HSSFWorkbook export(HttpServletResponse response) throws Exception;

}
